package de.tum.in.eist.im.shared;

import java.io.Serializable;

/**
 * This is the abstract super class of all events that happen in EIST_IM. An
 * event is either a MessageEvent (when a user sends a message to server), a
 * UserEvent (when a user logs in or out), or a HeartBeatEvent that the client
 * may use in order to constantly check if server is still available.
 * 
 * @author zardosht
 * 
 */
public abstract class AbstractEvent implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private long timestamp;

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public long getTimestamp() {
		return timestamp;
	}

}
